home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
fido
/
SHELTER275.lha
/
rexx
/
XRMV.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1995-01-09
|
1KB
|
54 lines
/**/
v="$VER: Xrmv Rexx Remove a file from a Site Queue Williamson 55.02"
options results
options failat 99
signal on syntax
signal on halt
signal on ioerr
signal on break_c
signal on break_d
if ~show('L', "rexxsupport.library") then
if ~addlib("rexxsupport.library", 0, -30, 0) then do
say "Couldn't access rexxsupport.library !"
exit 20
end
if ~show("L", "xferq.library") then
if ~addlib("xferq.library", 0, -30, 0) then do
say "Couldn't access xferq.library !"
exit 20
end
log=show('p','ROOFLOG')
script="Xrmv"
parse upper arg siteaddress file .
if arg()=0 then do
say "Usage:"
say " Xrmv fullsiteaddress fullpathname"
exit
end
if pos(":",file)=0 then do
putlog("FileName must be a FullPath",10,10)
exit 0
end
site_address=XfqGetAddress(siteaddress)
QUERY.XQ_NAME=file
QUERY.XQ_SITE=site_address
work=NULL;work=XfqFindWork(QUERY)
if work=NULL then call PutLog("File "file" not in "siteaddress" queue",10,10)
else do
PutLog("Removing "file" from "siteaddress" queue",10,10)
call XfqRemoveWork(work)
call XfqDropObject(work)
call XfqFlushQueue(site_address)
end
call XfqDropObject(site_address)
call XfqClose()
exit
PutLog: procedure expose log script
if arg(3) < GetClip('STATUSLEVEL') then say arg(1)
if arg(2) > GetClip('LOGLEVEL') then return 0
if log then address 'ROOFLOG' 'logline' left(time(),5) script': 'arg(1)
return 0